<!DOCTYPE html>
<html>
<head>
    <title>添加菜品</title>
    <link rel="stylesheet" href="/css/baseInfo.css">
</head>
<body>
<div class="container-fluid addDishesContainer">
    <ol class="breadcrumb">
        <li><a href="#"><h3>添加新菜</h3></a></li>
    </ol>
    <form id="addForm" class="form-horizontal" enctype="multipart/form-data">
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">菜名</label>
            <div class="col-sm-10">
                <input type="text" name="name" class="form-control" id="name">
            </div>
        </div>
        <div class="form-group">
            <label for="describe" class="col-sm-2 control-label">描述</label>
            <div class="col-sm-10">
                <textarea id="describe" name="describe" class="form-control" rows="3"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label for="price" class="col-sm-2 control-label">价格</label>
            <div class="col-sm-10">
                <input type="number" name="price" class="form-control" id="price">
            </div>
        </div>
        <div class="form-group">
            <label for="price" class="col-sm-2 control-label">图片上传</label>
            <div class="col-sm-10">
                <img id="dishesPhoto" src="" style="width:100px;height:100px;">
                <input type="file" id="img" name="img" onchange="changImg('#dishesPhoto', event)">
            </div>
        </div>
        <input type="hidden" name="method" id="method" value="addDishes">
        <input type="hidden" name="sId" id="sId">
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <a class="btn btn-success" id="confirmData">确认添加</a>
            </div>
        </div>
    </form>
</div>
<div class="alert alert-success addSuc" role="alert">添加成功！</div>
<div class="alert alert-warning  addErr" role="alert">添加失败！</div>
<script src="/js/util/checkOutDishes.js"></script>
<script src="/js/util/showPricture.js"></script>
<script src="/js/addDishes.js"></script>
</body>
</html>
